package com.example.day10;

/**
 * @author Lenovo
 */
public abstract class Fu {
    public  void show(){
        System.out.println("show方法被调用");
    }

    /* 编译【出错】，子类重写父类方法的时候，访问权限需要大于等于父类 */
    protected abstract void method();
}
class Zi extends Fu{
    public void method(){
        System.out.println("method方法被调用");
    }
}
class FuTest{
    public static void main(String[] args) {
        Fu f = new Zi();
        f.show();
        //f.method();
    }
}
